package com.twohand.admin.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.twohand.admin.Entity.Qrcode;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

@Component
public interface QrcodeMapper extends BaseMapper<Qrcode> {
    @Update("update qrcode set is_default = 0")
    Integer allNoDefault();
    @Update("update qrcode set is_default = 1 where id = #{id}")
    Integer setDefault(Integer id);
}
